#ifndef OPENGLPLAYER_H
#define OPENGLPLAYER_H
#include <X11/X.h>
#include <X11/Xlib.h>

#include <GL/gl.h>
#include <GL/glx.h>

#include <stdlib.h>
#include <stdio.h>

class OpenGLPlayer {
public:
    OpenGLPlayer();
    ~OpenGLPlayer();

    bool init(unsigned long winId);
    void close();

    void inputRgb32(int width, int height, char* data);
private:
    Display* _disp;
    Window _windId;


    GLXContext _glCtx;
};

#endif // OPENGLPLAYER_H
